{% extends "onk/base.html" %}

{% block title %}Search Page{% endblock %}

{% block content %}
<h1>Search Page</h1>

<form method="post" action="">
	{{form}}
	<input type="submit" value="Search"/>
</form>

{% if pages %}
	<h2>Search results for page name</h2>
	<ul>
	{% for page in pages %}
	<li><a href="{{ page.get_absolute_url }}">{{page.name|escape}}</a></li>
	{% endfor %}
	</ul>
{% endif %}

{% if contents %}
	<h2>Search results for content</h2>
	<ul>
	{% for page in contents %}
	<li><a href="{{ page.get_absolute_url }}">{{page.name|escape}}</a></li>
	{% endfor %}
	</ul>
{% endif %}

{% endblock %}